﻿using LMD.Lib.Oracle;
using LMD.Lib.DataClass;
using System;

namespace Controller
{
    public class ControllerBase
    {
        string _errLog;
        public string errLog
        {
            get
            {
                try { return _errLog; }
                catch { return string.Empty; }
            }
            set { _errLog = value; }
        }

        protected void CreateNewsFeed(DBLib dbl, NewsFeedData nfd)
        {
            if (nfd.sxContent.Length > 255)
            {
                nfd.sxContent = nfd.sxContent.Substring(0, 255);
            }
            DBQuery.NewsFeedTable.SaveNewsFeed(dbl, nfd);
        }

        public ControllerBase() { }
    }
}